org.eclipse.vtp.framework.databases.configurations
Class DatabaseTableConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.databases.configurations.DatabaseTableConfiguration
All Implemented Interfaces:
IConfiguration, DatabaseConstants

public class DatabaseTableConfiguration
extends java.lang.Object
implements IConfiguration, DatabaseConstants

A configuration for a database table.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI
 
Constructor Summary
DatabaseTableConfiguration()
          Creates a new DatabaseTableConfiguration.
 
Method Summary
 void addColumn(DatabaseColumnConfiguration column)
          Adds a column to the end of this table.
 DatabaseColumnConfiguration[] getColumns()
          Returns the columns defined in the table.
 java.lang.String getName()
          Returns the name of the table.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void removeColumn(DatabaseColumnConfiguration column)
          Removes a column from this table.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setName(java.lang.String name)
          Sets the name of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTableConfiguration

public DatabaseTableConfiguration()
Creates a new DatabaseTableConfiguration.

Method Detail

getName

public java.lang.String getName()
Returns the name of the table.

Returns:
The name of the table.

setName

public void setName(java.lang.String name)
Sets the name of the table.

Parameters:
name - The name of the table.

getColumns

public DatabaseColumnConfiguration[] getColumns()
Returns the columns defined in the table.

Returns:
The columns defined in the table.

addColumn

public void addColumn(DatabaseColumnConfiguration column)
Adds a column to the end of this table.

Parameters:
column - The column to add.

removeColumn

public void removeColumn(DatabaseColumnConfiguration column)
Removes a column from this table.

Parameters:
column - The column to remove.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.